//数据库模型Module

import { generate } from "rxjs"
import {Entity,Column,PrimaryGeneratedColumn, CreateDateColumn,Generated} from "typeorm"

@Entity()
export class User {
    @PrimaryGeneratedColumn() //'uuid'
    id: number

    @Column({type:"varchar",length:30})
    name:string

    @Column({
        type:"char",
        length:32
    })
    password:string
   
    @Column({
        type:"varchar",
    })
    desc:string

    @CreateDateColumn({type:"timestamp"})
    createTime:Date


    // UUID
    // @Generated('uuid')
    // uuid:string


    //枚举
    // @Column({
    //     type:"enum",
    //     enum:['1','2','3','4'],
    //     default:'1'
    // })
    
}
